import 'package:flutter/material.dart';

class SearchButton extends StatelessWidget {
  const SearchButton({
    super.key,
    required this.text,
    required this.onPressed,
  });

  final String text;
  final VoidCallback onPressed;

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: onPressed,
      // child: Align(
      //   alignment: Alignment.centerRight,
      child: Container(
          width: 80.0,
          height: 40,
          padding: const EdgeInsets.symmetric(horizontal: 5, vertical: 2),
          decoration: BoxDecoration(
            borderRadius: BorderRadius.circular(50),
            color: Color.fromARGB(255, 212, 226, 255),
          ),
          child: const Column(
            children: [
              Text("搜 索", style: TextStyle(color: Color.fromARGB(255, 61, 61, 61), fontSize: 18)),
            ],
          )),
      // ),
    );
  }
}
